package com.redrose.videodemo.utils;

import com.google.gson.Gson;

import java.util.regex.Pattern;

/**
 * 常量工具类
 */

public class ConstantUtil {
    public static final String DB_NAME = "VidewDemo.db";
    public static final String APP_NAME = "VidewDemo";

    public static final Gson mGson = new Gson();


    public static final Pattern Mobile_Pattern = Pattern.compile("[1][3,4,5,7,8][0-9]{9}");


    public static final String BaseHost = "http://112.74.186.112:8001";


    public static final String HostAction = BaseHost + "/login.ashx?action=";

    public static final String Url_Regist = HostAction + "MemberRegister";
    public static final String Url_Login = HostAction + "MemberLogin";

    public static final String Url_Edit_Photo = HostAction + "EditPhoto";

    public static final String Url_Get_MemeberInfo = HostAction + "GetMemberInfo";

    public static final String Url_Edit_Address = HostAction + "UpdateShippingAddress";

    public static final String Url_Get_Product_Category = HostAction + "GetProductCategory";

    public static final String Url_Add_Product = HostAction + "AddProduct";

    public static final String Url_Upload_Product_Img = HostAction + "UploadProductImg";

    public static final String Url_Get_MyProduct = HostAction + "GetMyProduct";

    public static final String Url_Product_List = HostAction + "GetProductNoMy";

    //memberID
    public static final String Url_CollectProduct = HostAction + "CollectProduct";

    public static final String Url_ZanProduct = HostAction + "ZanProduct";

    public static final String Url_GetProduct_Info = HostAction + "GetProductInfo";
    //GetProductInfo&productID

    //    action=AddMessage&productID=&memberID=&replyID=&replyContent=
//    其中，留言时，replyID=0，回复留言时，replyID为具体的留言ID
    //action=GetMessageList&productID=
    public static final String Url_GetLiuYanMsg_Info = HostAction + "GetMessageList";
    public static final String Url_AddLiuYanMsg = HostAction + "AddMessage";
    public static final int SELL_OPEN_IMAGE_FLAG = 1000;


    public static final String Url_AddOrder = HostAction + "AddOrder";

    public static final String Url_GetOrderList = HostAction + "GetOrderList";

    public static final String Url_GetOrderInfo = HostAction + "GetOrderInfo";

    public static final String Url_UpdateOrderStatus = HostAction + "UpdateOrderStatus";

    public static final String Url_GetCollectProduct = HostAction + "GetCollectProduct";

    public static final String Url_GetZanProduct = HostAction + "GetZanProduct";

    //action=GetSaleOrder&memberID=
    public static final String Url_GetSaleOrder = HostAction + "GetSaleOrder";

//    获取收藏商品:
//    action=GetCollectProduct&memberID=
//    获取点赞商品:
//    action=GetZanProduct&memberID=

//    生成订单：
//    action=AddOrder&productID=&buyMemberID=
//    获取订单列表：
//    action=GetOrderList&memberID=
//    获取订单详情：
//    action=GetOrderInfo&orderID=
//    修改订单状态：
//    action=UpdateOrderStatus&orderID=&status=

}
